package cn.com.zero.manager.auth.vo;

import cn.com.zero.base.vo.BaseVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * @author Huangyong
 * @version 1.0.0
 * @Description 在线用户对象
 * @createTime 2020/01/16 9:12
 */
public class OnLineCustomerVO extends BaseVO {
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;

    /**
     * 登录IP
     */
    private String loginIp;

    /**
     * 登录终端
     */
    @ApiModelProperty(value = "登录终端类型 loginTerminalType")
    private String lastLoginTerminal;

    /**
     *手机号
     */
    private String showMobilePhone;

    /** 手机号码(密文)*/
    @ApiModelProperty(value = "手机号码(密文)")
    private String mobilePhone;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 在线时长中(登录小时)
     */
    private String loginHour;

    /**
     * 在线时长中(登录分)
     */
    private String loginMin;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginTerminal() {
        return lastLoginTerminal;
    }

    public void setLastLoginTerminal(String lastLoginTerminal) {
        this.lastLoginTerminal = lastLoginTerminal;
    }

    public String getShowMobilePhone() {
        return showMobilePhone;
    }

    public void setShowMobilePhone(String showMobilePhone) {
        this.showMobilePhone = showMobilePhone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLoginHour() {
        return loginHour;
    }

    public void setLoginHour(String loginHour) {
        this.loginHour = loginHour;
    }

    public String getLoginMin() {
        return loginMin;
    }

    public void setLoginMin(String loginMin) {
        this.loginMin = loginMin;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }
}
